package com.huluobo.a2207kotlindouyin.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2207kotlindouyin.R
import com.huluobo.base.bean.MessageEntity

/**
 *  Created by LC on 2024/12/2.
 */
class MessageAdapter : BaseQuickAdapter<MessageEntity, BaseViewHolder>(R.layout.item_chat_room) {
    override fun convert(holder: BaseViewHolder, item: MessageEntity) {
        val content = "${item.username}:${item.msg}"
        holder.setText(R.id.item_chat_room_tv, content)
    }
}